package com.bjsxt.creat;

//线程的创建方式一：继承Thread类
public class TortoiseThread extends Thread {

    @Override
    public void run() {
        while (true) {
            System.out.println("乌龟领先了，加油！ " + this.getName() + "  " + this.getPriority());
        }
    }
}
